package com.recommend.persistence;

import com.recommend.domain.AdminDomain;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface AdminDomainMapper {
    int deleteByPrimaryKey(Integer adminId);

    int insert(AdminDomain record);

    int insertSelective(AdminDomain record);

    AdminDomain selectByPrimaryKey(Integer adminId);

    int updateByPrimaryKeySelective(AdminDomain record);

    int updateByPrimaryKey(AdminDomain record);


    @Select("select * from admin where account = #{account} and password = #{password}")
    AdminDomain select(AdminDomain record);

    @Update("update admin set password = #{password} where account = #{account}")
    int updateByAccount(AdminDomain record);
}